{% extends "base.html" %}
{%block cabecerahtml%}
		<link rel="stylesheet" href="/media/css/basetemp.css" type="text/css" media="screen, projection" />
		<link rel="stylesheet" href="/media/css/tabla.css" type="text/css" media="screen, projection" />
		<link rel="stylesheet" href="/media/css/confirm.css" type="text/css" media="screen, projection"/>
		<script type='text/javascript' src='/media/js/modal.js'></script>
{%endblock%}

{% block contenido %}
	<table id="lista_usuarios" cellspacing="1" cellpadding="0" width="100%" border="1">
		<thead>
			<th>Username</th>
			<th>Nombre</th>
			<th>Apellido</th>
			<th>Email</th>
			<th>Solicitud</th>
		</thead>
		<tbody>
		{% for s in solicitudes %}
			<tr>
				<td>{{s.user.username}}</td>
				<td>{{s.user.first_name}}</td>
				<td>{{s.user.last_name}}</td>
				<td>{{s.user.email}} </td>
				{%if s.supervisor %}
				<td>Supervisor</td>
				{%else%}{%if s.experto %}
				<td>Experto</td>
				{% endif %}{% endif %}		
				<td>
				<a href="/aceptar_solicitud/{{s.id}}/"/>Aceptar</a>
				</td>
				<td>
				<a href="/rechazar_solicitud/{{s.id}}/"/>Rechazar</a>
				</td>
			</tr>
		{% endfor %}
	</tbody>
</table>
<table>
	<tfoot>
		<tr>
			<td><a href="/gestionar_usuarios/">Volver</a></td>
		</tr>
	</tfoot>
</table>
{% endblock %}